public class Test {
    public boolean contains(int toFind) {
        for (int i = 0; i < size; i++) {
            if(toFind==array[i]){
                return true;
            }
        }
        return false;
    }
    public int indexOf(int toFind) {
        for (int i = 0; i < size; i++) {
            if(toFind==array[i]){
                return i;
            }
        }
        return -1;
    }
    public static void main(String[] args) {

    }
}
